<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use Spatie\Sitemap\SitemapGenerator;

class SiteMapController extends Controller
{
    public function create(){
        SitemapGenerator::create(config('app.url'))->writeToFile('site_map.xml');
    }
}
